﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity.Model;
namespace DAL
{
    public class UserDal
    {
        public UserInfo getUserInfo(string Account)
        {
            using (var db = new DerivativeEntities())
            {
                var userInfo = db.UserInfo.Where(item => item.UserAccount == Account).FirstOrDefault();
                return userInfo;
            }
        }
    }
}
